home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc A) / Acorn User China CD-ROM (UK) (Disc A).bin / DEMON / DTP / SMARTQUOTES.ARC / !Quotes_Docs_Manual < prev    next >
Encoding:
Text File  |  1995-04-15  |  23.9 KB  |  491 lines

  1. Smart Quotes version 1.50
  2. © Sam Kington 14th April 1995
  3.  
  4. This program is shareware, *not* public domain or freeware. You are allowed
  5. to evaluate this program free of charge for a period of two weeks; after
  6. that, you should destroy it if you do not intend to use it, or pay the
  7. registration fee to carry on using it. The registered version has more
  8. features than the free version, so there’s a carrot *and* a stick ;-). See
  9. the file “Versions” for more details.
  10.  
  11. It only runs under RISC OS 3 or later, but nowadays this means most people.
  12. Bear in mind that this file uses all the typographically-correct characters
  13. provided by Smart Quotes, and as such will look strange on other platforms or
  14. if you’re viewing it in the System font.
  15.  
  16. Contents
  17. ********
  18.  
  19.    This file contains the following sections (those marked * are essential to
  20. using Smart Quotes, the others less so):
  21.  
  22.      *• Quotation marks – how quotes work
  23.      *• Expands – how expands work
  24.      *• Typing mistakes – which ones Smart Quotes can correct
  25.      *• Menu structure, windows – brief explanation
  26.      *• Expand menu – what it does
  27.      *• Settings window – where you choose types of substitution
  28.       • Choices dialogue box – various preferences or choices
  29.       • Other choices – more choices
  30.       • Characters dialogue box – change the characters used for quotes
  31.      *• Expands window – viewing and editing expands
  32.       • Using expands – hints and tips for expands
  33.      *• Known problems – please read
  34.       • How to use hotkeys with Smart Quotes
  35.      *• Thanks, credits and acknowledgements
  36.       • Boring legal message – terms of distribution
  37.       • How to contact me – says it all really. Address, email, etc. 
  38.  
  39. Quotation marks
  40. ***************
  41.  
  42.    Operation of the program is (hopefully) self-explanatory; the principles
  43. behind it may not be. What the program basically does is sit in the
  44. background, and intercept all the key presses, substituting quotes according
  45. to the current settings, correcting miscapitalisation and doing all sorts
  46. of clever things involving expands (see below for a full explanation). It
  47. does this by remembering which keypresses have come before, and guessing what
  48. the text you’re editing looks like. If you’re just typing away, or have moved
  49. about using the left or right cursor only, this will usually be almost 100%
  50. accurate; if you start moving up or down, moving left or right by words or
  51. sentences, or move the cursor with the mouse, it will give up and start from
  52. scratch. If Smart Quotes gives up, its icon will briefly change to a question
  53. mark “?”.
  54.  
  55.    Note that Smart Quotes assumes that Tab inserts a tab character, and that
  56. Copy deletes to the right. If this is not the case in the editor you are
  57. using, Smart Quotes may get confused.
  58.  
  59.    Smart Quotes will often not substitute quotes in a writable icon – keys
  60. are usually handled directly by the WIMP in writable icons, so Smart Quotes
  61. doesn’t get to hear about them. You have to insert them manually –
  62. Shift-Adjust-clicking on any of Smart Quotes’ windows’ close icon will run
  63. !Chars (or whatever character viewer you have chosen – see “Other choices”).
  64.  
  65. Expands
  66. *******
  67.  
  68.    Expands are similar in operation to Impressions’ abbreviations: you type
  69. in something which is automatically replaced by something else. They are used
  70. for ligatures (fi), accents (é), various other symbols (×) and can also be
  71. used to apply rules of punctuation (only one space after a full stop, commas
  72. must be before quotes and note afterwards, etc.). There are two parts to an
  73. expand, the “found” part and the “substituted” part – so for instance, to get
  74. a ligature such as fi, you would create an expand with “fi” in the found part,
  75. and “fi” in the substituted part. When you type fi, Smart Quotes will
  76. automatically replace it by fi.
  77.  
  78.    There’s lots more to expands than that, but in this version you’ll be
  79. limited to expands of two characters in the found part, and one in the
  80. substituted part. The full-blown version has expands of up to seven
  81. characters and a separate file on hints and tips.
  82.  
  83.    Related to expands, but not quite the same thing, is Smart Quotes’ ability
  84. to delete ligatures properly. As long as Smart Quotes knows that you’re
  85. deleting a ligature (i.e. you typed it recently), if you delete it Smart
  86. Quotes will pretend it was two characters – so if the cursor is after “fi,”
  87. and you press Delete, it will delete the fi and replace it with a f (the same
  88. thing works with Copy from the other end).
  89.  
  90.    See “Expands window” for more details about how to add expands yourself,
  91. and “Using expands” for some hints and tips (there are more in the
  92. registered version, as mentioned previously).
  93.  
  94. Typing mistakes
  95. ***************
  96.  
  97.    Typing mistakes, known as “typos” for short: most of them are either
  98. wrong capitalisation or transposition of two letters. Short of having a
  99. massive dictionary Smart Quotes can’t help you with transposition – and
  100. anyway if you’re using this in a word processor you will have a spell checker
  101. –, but it can make an intelligent guess at correcting capitalisation.
  102.  
  103.    What usually happens is this: you have Caps Lock turned off, and you want
  104. to type a word beginning with a capital letter, so you press Shift to make
  105. the first letter a capital – and then you leave it on too long so the second
  106. letter ends up capitalised as well. You’ve usually let it go by the time you
  107. type the third letter, so you end up WIth WOrds THat LOok SOmething LIke
  108. THis. If you have typing mistake checking turned on, and you type two capital
  109. letters at the beginning of a word and then a lower-case letter, Smart Quotes
  110. will replace the second capital letter by a lower-case letter, so you end up
  111. With Words That Look Something Like This.
  112.  
  113.    This is the option that is least likely to cause you problems, as it
  114. doesn’t involve any fancy characters that some programs don’t like. Only turn
  115. it off it you will be typing words like NExT a lot of the time, or if case
  116. matters (variable names, SWI names etc.).
  117.  
  118. Menu structure, windows
  119. ***********************
  120.  
  121.    Smart Quotes supports interactive help, so I will only explain things in
  122. this file that wouldn’t fit in the interactive help messages. Interactive help
  123. should by default be turned on; if it isn’t, select “Interactive help” in the
  124. Choices window, available from the menu option “Choices...” in the icon bar
  125. menu.
  126.  
  127.    One thing worth mentioning here is that you can move the icon around by
  128. dragging with Shift and Ctrl held down. If you drag to the icon bar it
  129. inserts the icon where you dragged it; if you drag outside the icon bar, it
  130. will create a floating window which contains the icon. The state and position
  131. of the icon (if in a window) are stored in the choices.
  132.  
  133. Expand menu
  134. **************
  135.  
  136.    Save saves a file called “Expands” in the directory pointed to by the
  137. variable SmartQuotes$ChoicesDir, which is by default SmartQuotes$Dir but can
  138. be changed to point elsewhere if the Smart Quotes directory is read-only or
  139. restricted access (i.e. on a network) in the “Other choices” window (see
  140. below). The Expands file is a simple Obey file, so double-clicking on it
  141. will load the expands.
  142.  
  143.    Refresh: basically, choose this option if you want to make sure the front
  144. end really knows what characters are going to be substituted. Usually it
  145. does, but if you have modified the expands in the command line, or by
  146. double-clicking on another Expands file, you have to tell it the
  147. expands have changed. It’s also useful if the window seems to be the wrong
  148. size.
  149.  
  150. Settings window
  151. ***************
  152.  
  153.    The settings dialogue box determines how characters will be substituted.
  154. Choices take effect immediately, so playing around with the different
  155. options and typing to see what happens is usually the best way to work out
  156. what they all mean.
  157.  
  158. Choices dialogue box
  159. ********************
  160.  
  161.    This dialogue box affects the working of the front-end, and so doesn’t
  162. affect substitution of quotes: it’s mainly cosmetics. Changes take effect
  163. immediately. See also the “Other choices” window.
  164.  
  165.    “Show quotes’ state in icon”: If this option is selected, Smart Quotes’
  166. icon will show the state of quote substitution – an open double quote “ if
  167. quotes are on, and a neutral quote " if they are not. If quotes and/or
  168. expands are on, it will briefly change to a question mark “?”. 
  169.  
  170.    “Interactive help”: If selected, you will get interactive help on all of
  171. Smart Quotes’ windows and icons; if not, you won’t. As mentioned above, this
  172. is supplied with the module More Help, which means it doesn’t eat up any of
  173. Smart Quotes’ memory – it does use some in the Module Area, though.
  174.  
  175.    “‘Quit’ kills module”: If selected, when you quit the front-end, the
  176. ‘SmartQuotes’ module will be killed, thus stopping all substitution. If you
  177. want substitution to carry on after you quit the front-end (if you are short
  178. of memory, for instance), turn this option off. Bear in mind, however, that
  179. without the front-end you will need to use the command line (F12 or
  180. Ctrl-F12) to modify the settings; also, when you quit the front-end, you may
  181. have forgotten the module is still running and substituting quotes.
  182. Programmers beware!
  183.  
  184. Other choices
  185. *************
  186.  
  187.    The “Other choices” window is different from the other windows, in that
  188. changes you make in this window do not take effect immediately. This is due
  189. to the special nature of the Other choices window, which is in fact “owned”
  190. by another application, as it wouldn’t fit in the main Smart Quotes
  191. application – which explains the disc access when you click on the “Other...”
  192. button in the Choices window. Also, when you quit Smart Quotes the “Other
  193. choices” window stays open.
  194.  
  195.    In this window you can change the font styles Smart Quotes uses for the
  196. “Expands” window, the “Edit expands” window and the “Characters”
  197. window; you can change the application to be run when you Shift-Adjust click
  198. on a close icon (the “character viewer”); and you can change where Smart
  199. Quotes stores its Choices files, if you are running Smart Quotes from a
  200. read-only filing system like a network, a CD or a protected hard disc.
  201.  
  202.    Full interactive help is provided, so there shouldn’t be too many
  203. difficulties. The following comments may be useful:
  204.  
  205.    • You don’t have to drag an application to the window to change the
  206. character viewer; you can drag a file as well. (Unfortunately you cannot use a
  207. directory - you can’t have everything). The file will be run using *WimpTask,
  208. which will run the file without telling applications – so if you run a Drawfile
  209. and Draw (or a similar application) is running, a second copy of Draw will be
  210. loaded. Therefore, the best files to use are Obey, Command, the TaskWindow
  211. equivalents, Desktop or similar files.
  212.  
  213.    • You can change the location of the Choices directory (usually called
  214. “SQ Choices” but you can modify the actual filename by editing the writable
  215. field); when you click “Save and use”, if the filename is different the files
  216. will be copied from their old location to their new one. Smart Quotes will
  217. then try and update the “Choices” file in the (NB) *Smart Quotes* directory –
  218. which may be write-protected. In this case, Smart Quotes will try and save it
  219. in the Scrap directory. This also happens if the new choices directory is
  220. write protected. If you don’t have a Scrap directory set up (i.e. you haven’t
  221. “seen” Scrap if you have RISC OS 3.1) the save will fail.
  222.  
  223.    • When you modify one of the options, the title bar will change to “Other
  224. choices *” to show that the choices have been modified.
  225.  
  226. Characters dialogue box
  227. ***********************
  228.  
  229.    Clicking Default will revert to default settings. An individual character
  230. will also revert to default if the field is left blank.
  231.  
  232.    Clicking Save will save the preferred characters to a file called
  233. “<SmartQuotes$ChoicesDir>.Chars” (see above). This is a standard Obey file,
  234. and so is human-readable and editable (unlike the rather obscure Choices file
  235. ;) ). Again, like the Expands file, running it from a Filer window will
  236. load the characters (provided Smart Quotes is running, of course).
  237.  
  238.    Clicking Refresh will re-scan the characters, in case you have changed
  239. the definitions via the command line or by double-clicking on another Chars
  240. file.
  241.  
  242. Expands window
  243. **************
  244.  
  245.    Choosing ”Expands...“ from the main menu will open the Expands
  246. window, containing a list of all the current expands. The list is divided
  247. into two columns, somewhat like this:
  248.  
  249.    Found  Subst
  250.    --     –
  251.    –-     —
  252.    —-     •
  253.    fi     fi
  254.    fl     fl
  255.  
  256.    The window uses an outline font (Trinity.Medium for the text,
  257. Homerton.Bold for the heading, by default) so you can see exactly what is
  258. going on.
  259.  
  260.    The Found column contains the string typed in, the Subst column the text
  261. that replaces it.
  262.  
  263. Using expands
  264. *************
  265.  
  266.    Most expands in the list are fairly straightforward: f and i make fi, -
  267. twice produces an en-dash (–). There is however more than that to expands:
  268. you can combine several expands. For instance, to get a longer em-dash,
  269. type - three times: it will be substituted by an en-dash, and then by an
  270. em-dash, as another expand was defined as – + - = —. For when a expand
  271. is substituted, it simulates a key-press, and can therefore be the first part
  272. of another expand. (Typing - yet again will turn the em-dash into a bullet
  273. •, as yet another expand was defined as — + - = •).
  274.  
  275.    Accents can also be provided: e and / results in é, e and \ in è, etc.
  276. Circumflexes are more difficult (you need a ^, which uses Shift), and umlauts
  277. are downright difficult: " is already used, and using a colon is dangerous as
  278. colons are commonly used after vowels. You could always use £ or |.
  279.  
  280.    Cautionary tale: at one point I was going through the list of ligatures
  281. in the character set, and found “œ”. Having just done æ, I added o + e = œ.
  282. Then I typed “does”. Oops. So beware: don’t add expands just because
  283. there’s a character that *could* be substituted - you might not want to use
  284. it.
  285.  
  286. Known problems
  287. **************
  288.  
  289.    First of all, you can’t save the settings from the “Other choices” window
  290. if you’re running Smart Quotes from a read-only file system like a CD. Copy it
  291. somewhere else if you want to change the settings.
  292.  
  293.    If you are programming, typing commands at the CLI (F12 or taskwindow),
  294. doing anything at all involving comms, or in general using an application
  295. that doesn’t look too kindly upon top-bit-set characters, turn Smart Quotes’
  296. substitution off (Adjust-click on the icon will do the trick temporarily).
  297. Otherwise, the CLI will fail to recognise your command (“file 'filters' not
  298. found”), any quotes or expands will be tokenised if you’re programming in
  299. BASIC (it’s particularly spectacular in Zap ;) ), and any e-mail or usenet
  300. postings will look particularly gruesome on some people’s machines. This
  301. isn’t a bug, or even a feature, so there’s nothing you can do about it.
  302.  
  303.    As mentioned previously, Smart Quotes will often not substitute characters
  304. when the cursor is in a writable icon – in a dialogue box or off a menu item,
  305. for instance Name disc in the ADFS icon bar menu. This is because the WIMP
  306. handles those key presses itself (unless the “Notify” option is set in the
  307. validation string, e.g. “KARTN”), and Smart Quotes doesn’t get a look in.
  308. This shouldn’t be too much of a problem – usually you don’t want substitution
  309. in those cases anyway. However, any applications that require you to enter
  310. text in a dialogue box (a field name in a database, for instance), will not
  311. allow substitution.
  312.  
  313.    Those using Zap may find certain expands don’t work – namely, those
  314. using a shift-key to produce the second character, like A E Æ (if Caps Lock
  315. is off), < < « etc. This is because, when Smart Quotes sends Zap a delete
  316. character, Shift is still held down, so Zap looks at Shift-Delete and sees
  317. the command “DELETENEXT” rather than “DELETE”, and so fails to delete the
  318. character, so you’re left with something like AÆ, <« etc. To get round this,
  319. you have to change the key mappings:
  320.       Edit the key mappings (iconbar menu, Options=>Edit keys)
  321.       Find sDELETE in the file
  322.       Replace whatever command is opposite it by DELETE
  323.       Save the file
  324.       Re-load the key mappings as the new one (Options=>Reload keys)
  325.       
  326.    On a similar level, if you hold down the hyphen key, you may find that
  327. dashes in various shapes and sizes start lining up, looking something like
  328. this -----—•–•-—•-–. (This was actually done in Edit as Zap is fast enough
  329. not to have this problem ;) ). This is because Edit (or whoever the culprit
  330. was) wasn’t managing to delete characters fast enough before another one
  331. comes along, so Smart Quotes’ fancy substitution method falls over. The
  332. solution is simple: don’t type as fast!
  333.  
  334.    If you reload the module when Smart Quotes is running, the expands window
  335. may get seriously confused. Use “Refresh” to solve this.
  336.  
  337.    I have been told of problems with certain terminal emulators (think it was
  338. Hearsay), where Smart Quotes causes spurious interrupts or something. I don’t
  339. know any more about this, and knowing comms programs it’s probably not me ;).
  340. But you have been warned.
  341.  
  342.    As mentioned elsewhere, KeyMouse uses Alt-Select to move a window.
  343. Clicking Alt-Select on the iconbar makes it want to move the window –
  344. obviously it can’t, but tries all the same, and someone complains (ADFS
  345. Filer on my machine). This isn’t Smart Quotes’ fault!
  346.  
  347.    If windows appear in strange positions, or fail to appear at all when you
  348. try and open them, you very probably have a corrupt Choices file. Delete it
  349. and re-run the program; the program will complain that it can’t find a Choices
  350. file, and will then create a new one with the default settings:
  351.    • All substitutions on
  352.    • Show quotes state in icon
  353.    • Use interactive help
  354.    • Kill module when quit
  355.    • Windows positioned to suit a mode 35 screen or similar (768x288)
  356.    
  357.    Impression’s spell checker doesn’t take kindly to fi and fl (certainly not
  358. on my version, Publisher 4.01, ImpressionSpell 1.27). When spell checking, it
  359. ignores fi and fl, so if you spell check the word “finding” it will complain
  360. that it doesn’t know the word “nding” (rather than complain about not knowing
  361. the word “finding” ;)). This is because, if you look at the character set
  362. (double-click on Smart Quotes’ icon or run !Chars), fi and fl are buried among
  363. the odds and ends, like bullets, fractions, dashes, etc., not among the
  364. accents at all (Impression knows about accents - checking the word “étrange”
  365. will come up with “étrange” and not “trange”). I suspect (I haven’t
  366. tried it) Impression will ignore all characters from € to ¿, and cope happily
  367. with À to þ (not ÿ for some reason), so there will be the same problem for Œ
  368. and œ (but not for Æ and æ).
  369.    I don’t know what you can do about this, apart from complaining to
  370. Computer Concepts and using the “Ignore” button a lot ;) – the nice man from
  371. Computer Concepts said they had no plans to add support for ligatures to
  372. ImpressionSpell in the near future. (This is from the company whose own
  373. literature, namely the DemoDoc file supplied with Publisher, recommends you
  374. use ligatures all the time ;) ). If it bothers you, remove fi and fl from the
  375. list.
  376.  
  377. Thanks, acknowledgements, comments
  378. **********************************
  379.  
  380.    I would like to thank Acorn for this nice machine, and especially the bit
  381. in RISC OS 3.1 and later (the Filter Manager) that allows you to intercept
  382. other tasks’ events and muck about with them as you please. It is exceedingly
  383. useful - I have currently nine programs that use filters on my machine (it
  384. used to be seven, but I've been adding them since)...
  385.  
  386.    I got the idea for this utility after reading a small news item in
  387. MacWorld about a similar program for the Mac, that sat in the background and
  388. substituted quotes for you. It also did em dashes, and Smart Quotes didn’t
  389. use to do those, but now it does, and much more...
  390.  
  391.    I am grateful to Michael Rozdoba, author of Desktop+, for making his
  392. source code freely-available so I could see how he coded his code variables -
  393. although I must point out that the vast majority of the code is mine (I
  394. pinched that sentence from him as well ;) ). I don’t think anyone out there
  395. consciously rips off other people’s code (as in copies large chunks of it
  396. verbatim and calls it his own); however, I’m sure every programmer out there
  397. has at one stage or another taken a peek at someone else’s code. And as I’m
  398. not doing this for money or anything, I’ve included the complete source code
  399. to the applications, module and even vector claim routine ;).
  400.  
  401.    Also, thanks to the people who e-mailed me to tell me how wonderful
  402. previous versions were (or not, as the case may be), and to give me ideas
  403. for this version.
  404.    
  405.    The HENSA archive also deserves a thank-you for providing such a good
  406. service to Acorn users over the years (even if it looks likely to die a slow
  407. death in the more or less near future); a big ‘hi’ also goes out to Tom and
  408. Don Clarke. But I’ll stop here before this starts looking like a demo ;).
  409.  
  410.    The disclaimer was “lifted” from Ting Kuei’s DeskPatch help file - this
  411. doesn’t mean anything, I was just looking for a disclaimer and DeskPatch was
  412. the first thing I looked at that had one I liked. The freeware bit I also
  413. stole from someone, but I can’t remember who - sorry!
  414.  
  415.    Other people I should thank for writing very useful bits of software, used
  416. to write this or just making my desktop look prettier:
  417.       Dick Alstein, for his wonderful TemplEd.
  418.       Dominic Symes for his even more wonderful Zap.
  419.       Cy Booker for his BASIC cruncher - worth every penny of the registration fee.
  420.       Michael Rozdoba for Desktop+
  421.       Mark Greenwood, for Black Hole.
  422.       Matthew Godbolt, for FinalLook (quite simply essential on a RO3.1
  423.          machine)
  424.       Olly Betts for ReducedDrag and SpecialCase - the latter in particular
  425.          is a godsend now I have a CD-ROM.
  426.       Ian Jeffray for Memory Pie (even if I hate the gratuitous pic ;) ).
  427.       Simon Burrows for FontsPlus (font directory thingy).
  428.       Computer Concepts for Impression Publisher.
  429.    Sorry for anyone I’ve forgotten.
  430.    
  431. Boring legal message
  432. ********************
  433.  
  434.    This version of the application is freeware, that is, it can be
  435. distributed freely as long as only reasonable charges are made for media and
  436. distribution, and as long as all the files are distributed intact,
  437. unmodified. I retain copyright on all program code and documentation.
  438.  
  439.    If you intend to use this for more than the fortnight evaluation period,
  440. you must register (see “Register” for more details). 
  441.  
  442.    You may, however, use and distribute the module “MoreHelp” separately.
  443.  
  444.    This software is supplied “as is”: I make no warranty, expressed or
  445. implied, of the merchantability of this software or its fitness for any
  446. particular purpose. In no circumstances shall I be liable for any damage,
  447. loss of profits, or any indirect or consequential loss arising out of the use
  448. of this software or inability to use this software, even if I have been
  449. advised of the possibility of such loss.
  450.  
  451.    In other words, if your computer crashes, blows up, you lose all your work
  452. etc. all because of Smart Quotes, don’t blame me.
  453.  
  454.    If you use this at all, please write to me or e-mail me (see below)
  455. telling me how wonderful or how atrocious it is.
  456.  
  457. How to contact me
  458. *****************
  459.  
  460. All bug-reports, suggestions, comments or indeed any feedback at all will be
  461. welcomed. Here’s how to get to me:
  462.  
  463. E-mail     : 926286ki@udcf.gla.ac.uk.
  464.              This should be OK until June 1996.
  465.              I probably won’t be in Glasgow outside term-time, but mail will
  466.              be forwarded to wombat@altern.com, which is my French email
  467.              address.
  468.  
  469. Snail-mail : My term-time address, at least until June 1995, is:
  470.              Sam Kington
  471.              Flat 2/1
  472.              44 Hotspur Street
  473.              Glasgow G20 8NL
  474.              SCOTLAND
  475.              
  476.              Again, a backup is the home address – anything that goes here will get
  477.              to me eventually.
  478.              Sam Kington
  479.              Merlhiot
  480.              24420 Savignac les Eglises
  481.              FRANCE
  482.  
  483. Term-time is October to June, with bits off at Christmas (3 weeks) and
  484. Easter (4 weeks).
  485.  
  486. I can guarantee support and updates by email; anything else is trickier. If
  487. you send me a disc and the appropriate stamp (or two discs) I'll send you the
  488. latest version of Smart Quotes - registered or unregistered, depending on
  489. which version you have at the moment. (You *should* register, of course, but
  490. I've already said that quite a bit...)
  491.